import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    open: "/",
  },
  css: {
    modules: {
      scopeBehaviour: "local",
      generateScopedName: "[name]_[local]__[hash:base64:5]",
    },
    preprocessorOptions: {
      less: {
        math: "always"
      },
    },
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
});
